﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Common;

namespace DbManager
{
    /// <summary>
    /// 执行语句接口
    /// </summary>
    public interface IExcute
    {
        /// <summary>
        /// 执行方法
        /// </summary>
        /// <returns>返回true或者false</returns>
        bool Excute();
        /// <summary>
        /// 带事物的执行方法
        /// </summary>
        /// <param name="tran">事务</param>
        /// <returns>返回true或者false</returns>
        bool Excute(DbTransaction tran);
    }
}
